<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td bgcolor="#cccccc" width="200" valign="top"><!-- variable RHS Menu -->
     	<?php require('templates/menu7.php');?>
 
				</td>
<td valign="top" style="padding:30px 30px 30px 30px;">
<!--content-->



<?php
if(!isset($_REQUEST['id'])){
?>
<table border="0" width="100%" align="center">
<tr>
	<td>
		<b><div id="resultshere1" class="errorText">
		<?php
	 if($_REQUEST['v']=='success')
	{
	echo 'Your Request has been submitted';
	}
	 ?>
	 <?php
	 if($_REQUEST['v']=='err')
	{
	echo 'Please Select the record';
	}
	 ?>
		</div>
		</b>
		</td>
	</tr>
		<tr>
		  <td><img src="heading/Division-Details_03.jpg" /></td>
		</tr>
		<tr>
		   <td>&nbsp;</td>
		</tr>   
<tr>
<td align="center"><?php echo GetDivisionDetailsGrid();?></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>


<tr>
<td>&nbsp;</td>
</tr>

</table>
<?php }
else{
$sql = mysql_query('SELECT DISTINCT division_id,division_name,description FROM division where division_id="'.$_REQUEST['id'].'"');

$result = mysql_fetch_row($sql);
 ?>
 <form name="frmDivison" id="frmDivison" method="post" action="division_details_process.php">
 <input type="hidden" name="division_id" value="<?php echo $result[0];?>" />
		  <table class="grid" border="0">
		   <tr>
			  <td colspan="3"  height="10"></td>
			  </tr>
			  			  <tr>
			  <td height="20"></td>
			  </tr>

              <tr>
              <td><b>Division Name</b></td>
              <td>:</td>
              <td><input type="text" name="division" id="division" size="20" value="<?php echo $result[1];?>" ></td>
              </tr>
			  <tr>
			  <td height="10"></td>
			  </tr>
			  <tr>
              <td><b>Description</b></td>
              <td>:</td>
              <td><textarea name="description" id="description" rows="2" cols="15"><?php echo $result[2];?></textarea></td>
              </tr>
			  <tr>
			  <td height="20"></td>
			  </tr>
			  
              <tr>
                <td colspan="3" align="center">
				<input type="hidden" name="PageName" value="<?php echo $_SERVER['REQUEST_URI'];?>" />
				<input type="submit" value="Submit" name="submit" onClick="return Validate_divison('frmDivison');"></td>
              </tr>
			  <tr>
			  <td colspan="3"  height="20"></td>
			  </tr>
            </table>
			</form>
 
 
 
 
<?php } ?>
    <!--end content-->
    </td>
	</tr>
  </table>

  </td>
  </tr>
</table>
